class UserMailer < ActionMailer::Base 
	default :from => "noreply@udip.hr"

	def new_sticky_thread(member,thread)
		@member = member
		@thread = thread

		mail(:to => member.email, :subject => "Nova obavijest u grupi: " + @thread.group.name)
	end
	
	def new_pm(message)
		@sender = message.sender
		@reciever = message.reciever
		@message = message
		mail(:to => @reciever.email, :subject => "Nova privatna poruka od: " + @sender.full_name)

	end

end
